package com.google.code.p.restrpc.client;

import com.google.code.p.restrpc.DefaultRpcResponse;
import com.google.code.p.restrpc.RpcRequest;

/**
 * @author dz
 */
public interface RpcHttpClient {
    
    /**
     * @param targetUrl
     * @param body
     * @return
     */
    public DefaultRpcResponse send(String targetUrl, Object body);
    
    /**
     * @param request
     * @return
     */
    public DefaultRpcResponse send(RpcRequest request);
    
}
